package com.hry.store.service.impl;

import com.hry.store.dao.ProvinceMapper;
import com.hry.store.pojo.Province;
import com.hry.store.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;
    /**
     * 查询所有省份
     * @return
     */
    @Override
    public List<Province> getAll() {
        return provinceMapper.getAll();
    }
}
